package com.atguigu.spzx.user;

import com.atguigu.spzx.common.config.EnableSpzxAuth;
import com.atguigu.spzx.common.config.EnableSpzxMetaObjectHandler;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;

@MapperScan(basePackages = "com.atguigu.spzx.*.mapper")
@SpringBootApplication
@EnableSpzxMetaObjectHandler //启用自动填充
@EnableSpzxAuth //启用拦截器透传登录状态数据
@EnableAsync //启用异步
public class SpzxUserApplication {
    public static void main(String[] args) {
        SpringApplication.run(SpzxUserApplication.class,args);
    }
}
